package com.nb.controller;

import com.nb.result.Result;
import com.nb.service.LawyerService;
import com.nb.vo.LawyerVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/lawyer")
public class LawyerController {

    @Autowired
    private LawyerService lawyerService;

    //获取律师列表
    @RequestMapping("/list")
    public Result getLawyerList(){
        List<LawyerVO> lawyerVOList = lawyerService.getLawyerList();
        return Result.success(lawyerVOList);
    }
}
